const path = require('path');
const express = require('express');

let app = express();

//构建
const StudentRouter = express.Router();

//引入控制器
const StudentController = require(path.join(__dirname,"../controllers/StudentController"));

//班级列表页面
StudentRouter.get('/studentList',StudentController.studentList);

//班级编辑页面
StudentRouter.get('/studentEdit',StudentController.studentEdit);

//班级编辑post处理
StudentRouter.post('/studentEdit',StudentController.studentEditForm);

//班级删除
StudentRouter.get('/studentDelete',StudentController.studentDelete);

module.exports = StudentRouter;